Skip to content

Conversation

@ana-pantilie
Copy link

@ana-pantilie ana-pantilie commented Sep 25, 2025

Needs #6327

Description

Add your description here, if it fixes a particular issue please provide a
link
to the issue.

Checklist

  • Commit sequence broadly makes sense and commits have useful messages
  • New tests are added if needed and existing tests are updated. These may include:
    • golden tests
    • property tests
    • roundtrip tests
    • integration tests
      See Runnings tests for more details
  • Any changes are noted in the CHANGELOG.md for affected package
  • The version bounds in .cabal files are updated
  • CI passes. See note on CI. The following CI checks are required:
    • Code is linted with hlint. See .github/workflows/check-hlint.yml to get the hlint version
    • Code is formatted with stylish-haskell. See .github/workflows/stylish-haskell.yml to get the stylish-haskell version
    • Code builds on Linux, MacOS and Windows for ghc-9.6 and ghc-9.12
  • Self-reviewed the diff

Note on CI

If your PR is from a fork, the necessary CI jobs won't trigger automatically for security reasons.
You will need to get someone with write privileges. Please contact IOG node developers to do this
for you.

@ana-pantilie ana-pantilie mentioned this pull request Sep 23, 2025
8 tasks
Copy link
Contributor

@lehins lehins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't guarantee that my suggestions will compile, but at least they should give you enough info about those new predicate failures.

@ana-pantilie ana-pantilie force-pushed the ana/10.6-final-integration-mix branch 4 times, most recently from bc2e58f to 493a96d Compare September 30, 2025 11:46
@crocodile-dentist crocodile-dentist force-pushed the ana/10.6-final-integration-mix branch 6 times, most recently from 847992c to c6f48e8 Compare October 2, 2025 18:19
Api.AlonzoEraOnwardsBabbage -> renderAlonzoPlutusPurpose
Api.AlonzoEraOnwardsConway -> renderConwayPlutusPurpose
-- TODO: fix
Api.AlonzoEraOnwardsDijkstra -> undefined
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs to be addressed.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still an undefined in the code

]
forMachine _dtal (TraceLocalRootWaiting d dt) =
mconcat [ "kind" .= String "LocalRootWaiting"
-- TODO: `domainAddress` -> `accessPoint`
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this need to be addressed in this PR? Should we open a separate issue?

(M.notMember stakeKeyHash . L.scDeposits)
(\accountsStates -> isJust $ do
_state <- M.lookup stakeKeyHash accountsStates
pure () -- TODO: should we check for balance?
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To be addressed after fixing testnet.

_state <- M.lookup stakeKeyHash accountsStates
pure () -- TODO: should we check for balance?
)
-- (M.notMember stakeKeyHash . L.scDeposits)
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this commented out instead of removed?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is the previous implementation, to be removed once we fix the testnet tests.

import qualified Hedgehog as H
import qualified Hedgehog.Extras as H

-- TODO we're not supporting non-p2p topology, does this test make any sense now?
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds like this needs to be addressed.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had another look. I'll remove this test.

let disabledTests = pure $ T.testGroup "tests disabled" []

E.withArgs args $ tests >>= T.defaultMainWithIngredients T.defaultIngredients
-- TODO: fix testnet tests and reenable here
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just marking this here as the testnet tests TODO.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, but it's out of scope for the node 10.6 release.

({ lib, pkgs, ... }: lib.mkIf (pkgs.stdenv.hostPlatform != pkgs.stdenv.buildPlatform) {
# Remove hsc2hs build-tool dependencies (suitable version will be available as part of the ghc derivation)
packages.Win32.components.library.build-tools = lib.mkForce [ ];
# TODO: error: The option `packages.Win32' does not exist.
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be addressed?

@mgmeier mgmeier force-pushed the ana/10.6-final-integration-mix branch from 3736db5 to 3aae876 Compare October 13, 2025 12:24
@ana-pantilie ana-pantilie force-pushed the ana/10.6-final-integration-mix branch from 955a9c8 to ce90fec Compare October 16, 2025 13:58
@amesgen amesgen dismissed their stale review October 16, 2025 15:10

Addressed in recent pushes

@carbolymer carbolymer force-pushed the ana/10.6-final-integration-mix branch 2 times, most recently from 0ecd14d to 706faab Compare October 24, 2025 11:51
@ana-pantilie ana-pantilie marked this pull request as ready for review October 24, 2025 15:45
@ana-pantilie ana-pantilie requested a review from a team October 24, 2025 15:45
@ana-pantilie ana-pantilie requested review from a team as code owners October 24, 2025 15:45
Copy link
Contributor

@Jimbo4350 Jimbo4350 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with respect to changes that concern my team.

-- Enable peer to peer discovery
, ("EnableP2P", Aeson.Bool False)
-- Enable P2P, non-P2P is gone
, ("EnableP2P", Aeson.Bool True)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If non-P2P is gone why bother keeping the "EnableP2P" configuration key?

Copy link
Contributor

@carbolymer carbolymer Oct 30, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed.

(pledgerSAddr, _rewards, _poolId) <- H.headM $ mergeDelegsAndRewards delegsAndRewards

-- Pledger and owner are and can be the same
Text.unpack (serialiseAddress pledgerSAddr) === poolownerstakeaddr
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why has this check been removed?

Copy link
Contributor

@carbolymer carbolymer Oct 30, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because it does not make sense. You have multiple stake addresses in the list in the arbitrary order and it fails randomly. The check that poolownerstakeaddr is in the list is already done in checkStakeKeyRegistered.

H.renameFile (tempAbsPath' </> "shelley/genesis.json") (tempAbsPath' </> defaultGenesisFilepath ShelleyEra)
H.renameFile (tempAbsPath' </> "shelley/genesis.alonzo.json") (tempAbsPath' </> defaultGenesisFilepath AlonzoEra)
H.renameFile (tempAbsPath' </> "shelley/genesis.conway.json") (tempAbsPath' </> defaultGenesisFilepath ConwayEra)
-- TODO: once 'cardano-cli latest genesis create' supports dijkstra, make this a copy instead of writing a default
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@carbolymer can you turn this into an issue so we can track it.

Copy link
Contributor

@carbolymer carbolymer Oct 30, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

@jutaro jutaro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for this contribution. I’ve reviewed the changes related to the tracing system and have some important observations:

Incomplete removal of tracing constructors
According to the network changelog, the following were removed:

TraceLedgerPeersResult

TraceLedgerPeersFailure
However, this removal appears to be incomplete. Some references are still present in the codebase, leading to inconsistency and potential confusion during tracing. I will prepare a follow-up commit tomorrow to fully remove the remaining instances and ensure consistency.

TraceChurnMode still present
The changelog also states that:

TraceChurnMode was removed from TracePeerSelection
However, TraceChurnMode still appears in the node codebase—possibly used in a different context now. Before proceeding, I believe the network team should verify that is still required and if the codebase is fully adopted to this change. Otherwise, it may result in dead code or misleading trace output.

Additional tracing inconsistencies
While reviewing this PR, I found several smaller issues and inconsistencies in the trace definitions that should be addressed for correctness and maintainability. I will include these fixes in a follow-up commit tomorrow.

Api.AlonzoEraOnwardsBabbage -> renderAlonzoPlutusPurpose
Api.AlonzoEraOnwardsConway -> renderConwayPlutusPurpose
-- TODO: fix
Api.AlonzoEraOnwardsDijkstra -> undefined
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still an undefined in the code

@jutaro jutaro force-pushed the ana/10.6-final-integration-mix branch from ab91132 to 0eaa1e7 Compare October 28, 2025 17:31
Copy link
Contributor

@jutaro jutaro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All issues I found have been addressed now

johnalotoski and others added 27 commits November 11, 2025 15:55
@ana-pantilie ana-pantilie force-pushed the ana/10.6-final-integration-mix branch from 4d56bc9 to 0960b09 Compare November 11, 2025 13:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.